package com.easy.dn.ui.main.contract;

import com.easy.common.base.BaseModel;
import com.easy.common.base.BasePresenter;
import com.easy.common.base.BaseView;
import com.easy.dn.bean.JobAddressBean;
import com.easy.dn.bean.ListBean;

import java.util.List;
import java.util.Map;

import rx.Observable;

/**
 * Created by 丁宁
 * on 2017/7/21.
 */

public interface AddressTypeContract {

    interface Model extends BaseModel {
        Observable<ListBean> getAddressList(List<JobAddressBean> mSelect);
        Observable<ListBean> getSelectData(Map<String, JobAddressBean> mSelect,String filterStr);
    }

    interface View extends BaseView {
        void returnAddressList(ListBean listBean);
        void returnSelectProfessionList(ListBean listBean);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public abstract void getData(List<JobAddressBean> mSelect);
        public abstract void getSelectData(Map<String, JobAddressBean> mSelect ,String filterStr);
    }
}
